package com.note.service;

import com.note.mapper.ComLikesMapper;
import com.note.pojo.ComLikes;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ComLikeServiceImpl implements ComLikeService{
    @Autowired
    private ComLikesMapper comLikesMapper;

    @Override
    public void addClikes(ComLikes comLikes) {
        comLikesMapper.inserClikes(comLikes);
    }

    @Override
    public ComLikes getByUidCid(ComLikes comLikes) {
        return comLikesMapper.getByUidCid(comLikes);
    }

    @Override
    public void addoneClikes(ComLikes comLikes) {
        comLikesMapper.updateClikes(comLikes);
    }
}
